package com.example.demo01.Controller.webController;

import com.alibaba.fastjson.JSON;
import com.example.demo01.Service.webService.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HospitalController {
    @Autowired
    HospitalService hospitalService;

    /**
     * 获取所有医院信息点
     * */
    @RequestMapping(value = "/hospital/GET")
    public String getAllHospitals(){
        return JSON.toJSONString(hospitalService.getAllHospitals());
    }
}
